package com.zf.yichat.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;

@Table(name = "packet_vip_receive")
public class PacketVipReceive implements Serializable {
    @Id
    private Long id;

    /**
     * 领取人
     */
    @Column(name = "user_id")
    private Long userId;

    /**
     * 领取钱数
     */
    private BigDecimal money;

    private Date ctime;

    private static final long serialVersionUID = 1L;

    public PacketVipReceive(Long id, Long userId, BigDecimal money, Date ctime) {
        this.id = id;
        this.userId = userId;
        this.money = money;
        this.ctime = ctime;
    }

    public PacketVipReceive() {
        super();
    }

    /**
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取领取人
     *
     * @return user_id - 领取人
     */
    public Long getUserId() {
        return userId;
    }

    /**
     * 设置领取人
     *
     * @param userId 领取人
     */
    public void setUserId(Long userId) {
        this.userId = userId;
    }

    /**
     * 获取领取钱数
     *
     * @return money - 领取钱数
     */
    public BigDecimal getMoney() {
        return money;
    }

    /**
     * 设置领取钱数
     *
     * @param money 领取钱数
     */
    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    /**
     * @return ctime
     */
    public Date getCtime() {
        return ctime;
    }

    /**
     * @param ctime
     */
    public void setCtime(Date ctime) {
        this.ctime = ctime;
    }
}